#ifndef _TMSMAPBUTTON_H_
#define _TMSMAPBUTTON_H_

#include <QObject>
#include <QPixmap>
#include <QRect>
#include <QPainter>
#include <QPoint>

class TmsButton : public QObject
{
    Q_OBJECT

public:
    void Draw(QPainter & painter, int btn_size, QPoint position,const QPixmap & pix);

    bool check_hover(QPoint pos);
    void btn_clicked();

Q_SIGNALS:
    void clicked();
private:
    QRect m_btn_rect;
};

#endif
